APP_NAME="erp_server"
SERVER_IP="erp_server"

ssh ${SERVER_IP} "killall -9 ${APP_NAME}"

set GOARCH=amd64
go env -w GOOS=linux
go build -o dist/${APP_NAME} *.go
scp dist/${APP_NAME} ${SERVER_IP}:/opt/